package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.notifiction.HLLocalAndPushNotifiction;
import HLLib.notifiction.HLToDoItem;

public class HLClassLocalAndPushNotifiction extends HLLibClass {
    public HLClassLocalAndPushNotifiction(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLLocalAndPushNotifiction();
    }

    public void StaticExecute(int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            HLLocalAndPushNotifiction.ScheduleNotificationWithItem((HLToDoItem)args.GetObject(0));
            break;
        }
        case 1: {
            if (resultOwnerObject == null) {
                HLLocalAndPushNotifiction.GetApplicationIconNumber();
            } else {
                resultOwnerObject.SetInt(resultIndex, HLLocalAndPushNotifiction.GetApplicationIconNumber());
            }
            break;
        }
        case 2: {
            HLLocalAndPushNotifiction.SetApplicationIconNumber(args.GetInt(0));
            break;
        }
        case 3: {
            HLLocalAndPushNotifiction.RegistorPushNotifiction(args.GetInt(0));
            break;
        }
        }
    }
}
